import unittest
from Case.AccountInfoCase import AccountInfoCase
from Case.PayManageCase import PayManageCase
from Tools.Tools import Tools

# lcx

# 加载测试套件
def suite(testcase):
    suite = unittest.TestLoader().loadTestsFromTestCase(testcase)
    return suite
def suite_discover():
    suite = unittest.defaultTestLoader.discover(start_dir=Tools.resolve_path('Case'),pattern="*Case.py")
    return suite

if __name__ == '__main__':
    suite = suite(PayManageCase)
    # suite = suite_discover()
    Tools().report(suite)
    Tools().email('测试结果','龙果融合支付测试',[Tools.resolve_path("Report/result.html"),Tools.resolve_path("Log/Log.log")])
    # runner = unittest.TextTestRunner()
    # # 执行
    # runner.run(suite)
